package com.ruoyi.myweb.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.myweb.mapper.FoodShopMapper;
import com.ruoyi.myweb.domain.FoodShop;
import com.ruoyi.myweb.service.IFoodShopService;

/**
 * 店铺管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-19
 */
@Service
public class FoodShopServiceImpl implements IFoodShopService 
{
    @Autowired
    private FoodShopMapper foodShopMapper;

    /**
     * 查询店铺管理
     * 
     * @param id 店铺管理主键
     * @return 店铺管理
     */
    @Override
    public FoodShop selectFoodShopById(Long id)
    {
        return foodShopMapper.selectFoodShopById(id);
    }

    /**
     * 查询店铺管理列表
     * 
     * @param foodShop 店铺管理
     * @return 店铺管理
     */
    @Override
    public List<FoodShop> selectFoodShopList(FoodShop foodShop)
    {
        return foodShopMapper.selectFoodShopList(foodShop);
    }

    /**
     * 新增店铺管理
     * 
     * @param foodShop 店铺管理
     * @return 结果
     */
    @Override
    public int insertFoodShop(FoodShop foodShop)
    {
        return foodShopMapper.insertFoodShop(foodShop);
    }

    /**
     * 修改店铺管理
     * 
     * @param foodShop 店铺管理
     * @return 结果
     */
    @Override
    public int updateFoodShop(FoodShop foodShop)
    {
        return foodShopMapper.updateFoodShop(foodShop);
    }

    /**
     * 批量删除店铺管理
     * 
     * @param ids 需要删除的店铺管理主键
     * @return 结果
     */
    @Override
    public int deleteFoodShopByIds(Long[] ids)
    {
        return foodShopMapper.deleteFoodShopByIds(ids);
    }

    /**
     * 删除店铺管理信息
     * 
     * @param id 店铺管理主键
     * @return 结果
     */
    @Override
    public int deleteFoodShopById(Long id)
    {
        return foodShopMapper.deleteFoodShopById(id);
    }
}
